<?php 
class ADMIN_DEFINED{
	 const ADD_RECORD 		= '_add';
	 const EDIT_RECORD 		= '_edit';
	 const DELETE_RECORD 	= '_delete';
	 const SAVE_ORDER 		= '_saveOrder'; 
	 const DISABLE			= '_disable';
	 const ENABLE			= '_enable'; 
	 const CHANGE_CATE		= '_change_cate';	 
	 const FILTER			= '_filter';
	 const VIEW_ORDER		= '_customer_order';
	 const VIEW_HISTORY		= '_customer_history';
	 
	 
	 
	const SET_HOME 			= '_setHome';
	const SET_HOT 			= '_setHot';
	
	
	 
	 const MENU_TYPE_LEFT = 'left';
	 const MENU_TYPE_TOP	= 'top';
	 
}
class AdminArrayData{
	public static function addNoneItem($data = array(), $item = array()){
		$arr = array('-1' => __('select-option'));		
		if(count($item)){
			$arr = $item;
		}
		foreach($data as $k => $v){
			$arr[$k]= $v;
		}
		return $arr;
	}
	public static  function getEnabled(){
		return array(
					'0'		=> __('is-enabled-0'),
					'1'		=> __('is-enabled-1')
				);
	}
	public static  function getAccountGroupType(){
		return array(
				SysAccountGroups::TYPE_MEMBER		=> __('type-'.SysAccountGroups::TYPE_MEMBER),
				SysAccountGroups::TYPE_ADMIN		=> __('type-'.SysAccountGroups::TYPE_ADMIN)
		);
	}
}
